'   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 '     T h i s   e x a m p l e   d e m o n s t r a t e s   M o u s e X ,   M o u s e Y 
 
 '     a n d   t h e   K e y P r e s s e d   e v e n t s   a n d   c o n d i t i o n s 
 
 '   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 '     S t a r t   a n d   r e s e t   t h e   z e r o   p o s i t i o n   w i t h   k e y   " X " 
 
 '     S t o p   w i t h   k e y   " Z " 
 
 '   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
 
 
 K e y   X   G o s u b   J O G 
 
 S t o p 
 
 
 
 V a r i a b l e   N u m e r i c   J o g _ X 
 
 V a r i a b l e   N u m e r i c   J o g _ Y 
 
 V a r i a b l e   N u m e r i c   J o g _ M o u s e S t a r t X 
 
 V a r i a b l e   N u m e r i c   J o g _ M o u s e S t a r t Y 
 
 
 
 L a b e l   J O G 
 
 	 J o g _ M o u s e S t a r t X   =   M o u s e X 
 
 	 J o g _ M o u s e S t a r t Y   =   M o u s e Y 
 
 	 L a b e l   J o g 2 
 
 	 	 J o g _ X   =   M o u s e X   -   J o g _ M o u s e S t a r t X 
 
 	 	 J o g _ Y   =   M o u s e Y   -   J o g _ M o u s e S t a r t Y 
 
 	 	 P r i n t   F o r m a t ( J o g _ X ,   " 0 . 0 0 0 " )   +   "   "   +   F o r m a t ( J o g _ Y ,   " 0 . 0 0 0 " ) 
 
 	 	 I f   K e y ( " Z " ) 
 
 	 	 	 W a i t   N o t   K e y ( " Z " ) 
 
 	 	 	 R e t u r n 
 
 	 	 E n d I f 
 
 	 G o t o   J o g 2 
 
 R e t u r n 
 
 
 
 
 
 ' W A T C H   v 1 
 
 ' W A T C H   G e t S e p a r a t e d S t r i n g ( S e q u e n c e C m d ,   1 ) 
 
 